package com.dwxt.community.dao;

import java.util.List;

import com.dwxt.community.aiequipment.sellmachine.entity.*;
import org.apache.ibatis.annotations.Param;

public interface SellMachineMapper {
    int countByExample(SellMachineExample example);

    int deleteByExample(SellMachineExample example);

    int deleteByPrimaryKey(String deviceId);

    int insert(SellMachine record);

    int insertSelective(SellMachine record);

    List<SellMachine> selectByExample(SellMachineExample example);

    SellMachine selectByPrimaryKey(String deviceId);


    int updateByExampleSelective(@Param("record") SellMachine record, @Param("example") SellMachineExample example);

    int updateByExample(@Param("record") SellMachine record, @Param("example") SellMachineExample example);

    int updateByPrimaryKeySelective(SellMachine record);

    int updateByPrimaryKey(SellMachine record);

    List<SellMachine> selectAll(@Param("controlNo") String controlNo,@Param("using")Integer using);

    SellMachine selectMachineAisleByPrimaryKey(String deviceId);

    int selectCountByDeviceId(@Param("controlNo") String controlNo, @Param("deviceId") String deviceId);

    SellMachine selectByDeviceNo(String controlNo);

    SellMachine selectMachineAisleByDeviceNo(String no);
}